<div class="container">
    <div>
        <div id="main">
            <div class="login-register">
                <div class="row">
                    <div class="span9">
                        <ul class="tabs nav nav-tabs">
                            <li style="width: 33%;" class="active"><a href="<?= Yii::app()->createUrl(Yii::app()->getModule('user')->registrationUrl[0]); ?>">Регистрация</a></li>
                        </ul>
                        <!-- /.nav -->

                        <div class="tab-content">

                            <div class="tab-pane active" id="register">
                                <?php if (Yii::app()->user->hasFlash('registration')) { ?>
                                    <div class="alert alert-success">
                                        <button type="button" class="close" data-dismiss="alert">×</button>
                                    <?php echo Yii::app()->user->getFlash('registration'); ?>
                                    </div>
                                <?php } ?>

                                <?php
                                $form = $this->beginWidget('CActiveForm', array(
                                    'id' => 'getscores-form',
                                    'enableClientValidation' => true,
                                    'clientOptions' => array(
                                        'validateOnSubmit' => true,
                                    ),
                                    'htmlOptions' => array(
                                        'class' => 'contact-form'
                                    ),
                                        ));
                                ?>


                                <?php if ($model->getErrors()) { ?> 
                                    <div class="alert alert-error">
                                        <button type="button" class="close" data-dismiss="alert">×</button>
                                            <?php echo $form->errorSummary(array($model, $profile)); ?>
                                    </div>
                                <?php }; ?>


                                <?php $field = 'lastname'; ?>
                                <div class="name control-group">
                                    <label class="control-label" for="inputContactName">
                                        <?php echo strip_tags($form->label($profile, $field)); ?>
                                        <span class="form-required" title="This field is required.">*</span>
                                    </label>
                                    <div class="controls">
                                        <?php
                                        echo $form->textField($profile, $field, array(
                                            'placeholder' => 'Ваша фамилия',
                                            'pattern' => '^([А-ЯЁ]{1})([а-яё]{1,20})$'
                                        ))
                                        ?>
                                    </div><!-- /.controls -->
                                </div><!-- /.control-group -->

                                <?php $field = 'firstname'; ?>
                                <div class="email control-group">
                                    <label class="control-label" for="inputContactName">
                                        <?php echo strip_tags($form->label($profile, $field)); ?>
                                        <span class="form-required" title="This field is required.">*</span>
                                    </label>
                                    <div class="controls">
                                        <?php
                                        echo $form->textField($profile, $field, array(
                                            'placeholder' => 'Ваша имя отчество',
                                            'pattern' => '^([А-ЯЁ]{1})([а-яё]{1,20})([ ]{1})([А-ЯЁ]{1})([а-яё]{1,20})[^ь]+$'
                                        ));
                                        ?>
                                    </div><!-- /.controls -->
                                </div><!-- /.control-group -->



                                        <?php $field = 'email'; ?>
                                <div class="name control-group">
                                    <label class="control-label" for="inputContactName">
                                        <?php echo strip_tags($form->label($model, $field)); ?>
                                        <span class="form-required" title="This field is required.">*</span>
                                    </label>
                                    <div class="controls">
                                        <?php
                                        echo $form->textField($model, $field, array(
                                            'placeholder' => 'Ваша электронная почта',
                                            'pattern' => '^[a-zA-Z0-9_\-.]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-.]+$'
                                        ));
                                        ?>
                                    </div><!-- /.controls -->
                                </div><!-- /.control-group -->

                                <?php $field = 'mobile'; ?>
                                <div class="email control-group">
                                    <label class="control-label" for="inputContactName">
                                        <?php echo strip_tags($form->label($profile, $field)); ?>
                                        <span class="form-required" title="This field is required.">*</span>
                                    </label>
                                    <div class="controls">
                                        <?php
                                        echo $form->textField($profile, $field, array(
                                            'placeholder' => 'Ваш телефон',
                                            'pattern' => '^([\+])??([0-9]){8,12}$',
                                            'minlength' => 10,
                                        ))
                                        ?>
                                    </div><!-- /.controls -->
                                </div><!-- /.control-group -->



                                        <?php $field = 'password'; ?>
                                <div class="name control-group">
                                    <label class="control-label" for="inputContactName">
                                        <?php echo strip_tags($form->label($model, $field)); ?>
                                        <span class="form-required" title="This field is required.">*</span>
                                    </label>
                                    <div class="controls">
                                    <?php
                                        echo $form->passwordField($model, $field, array(
                                            'placeholder' => 'Введите пароль',
                                        ));
                                    ?>
                                    </div><!-- /.controls -->
                                </div><!-- /.control-group -->

                                <?php $field = 'verifyPassword'; ?>
                                <div class="email control-group">
                                    <label class="control-label" for="inputContactName">
                                        <?php echo strip_tags($form->label($model, $field)); ?>
                                        <span class="form-required" title="This field is required.">*</span>
                                    </label>
                                    <div class="controls">
                                        <?php
                                        echo $form->passwordField($model, $field, array(
                                            'placeholder' => 'Повторите пароль',
                                        ));
                                        ?>
                                    </div><!-- /.controls -->
                                </div><!-- /.control-group -->
                                   
                                <div class="control-group">
                                    <div class="controls">
                                    </div><!-- /.controls -->
                                </div><!-- /.control-group -->
                                
                                <div class="control-group">
                                    <div class="controls">
                                        Заверщив регистрацию Вы принимаете условия <?php echo CHtml::link('Пользовательского соглашения', array('/agreement'));?>. <span class="form-required" title="This field is required.">*</span><br />
                                        <?php echo CHtml::link('Войти', array('/user/login'));?> | <?php echo CHtml::link('Забыли пароль?', array('/user/recovery'));?>
                                    </div><!-- /.controls -->
                                </div><!-- /.control-group -->

                                <div class="control-group">
                                    <div class="controls">
                                        <?php echo CHtml::submitButton('Зарегистрировать', array('class' => 'btn btn-primary arrow-right')); ?>
                                    </div><!-- /.controls -->
                                </div><!-- /.control-group -->
                                                              


                                <?php $this->endWidget(); ?>
                            </div>
                            <!-- /.tab-pane -->
                        </div>
                        <!-- /.tab-content -->
                    </div>
                    <!-- /.span4-->

                    <div class="span3">
                        <?php $this->widget('application.widgets.front.SocGroupWidget', array()); ?>
                    </div>

                </div>
                <!-- /.row -->
            </div><!-- /.login-register -->        
            <?php $this->widget('application.widgets.front.ArticleWidget', array()); ?>
        </div>
    </div>
</div>